<template>
    <div>
        子组件1
        <button @click="send()">传数据到子组件2</button>
    </div>
</template>

<script>
export default {
    name:"child1",
    data(){
        return{
        Hello:"Hello,Brother",
        }
    },
    methods:{
        send(){
            this.$emit("sendmsg1",this.Hello)
        }
    }
}
</script>>

<style scoped>
div{
    text-align: center;
}
</style>